// 导入组件
const Layout = () => import('@/layout/index.vue')
const college = () => import('@/views/school/college.vue')
const major = () => import('@/views/school/major.vue')
const classes = () => import('@/views/school/classes.vue')
const teacher = () => import('@/views/school/teacher.vue')
const student = () => import('@/views/school/student.vue')

// 导出该组件
export default ([
    {
        path: "/school",
        component: Layout,
        name: 'school',
        meta: {
            title: '学校信息管理',
        },
        icon: 'School',
        children: [
            {
                path: '/college',
                name: 'college',
                component: college,
                meta: {
                    title: '学院信息管理',
                },
                hidden: false
            },
            {
                path: '/major',
                name: 'major',
                component: major,
                meta: {
                    title: '专业信息管理',
                },
                hidden: false
            },
            {
                path: '/classes',
                name: 'classes',
                component: classes,
                meta: {
                    title: '班级信息管理',
                },
                hidden: false
            },
            {
                path: '/student',
                name: 'student',
                component: student,
                meta: {
                    title: '学生信息管理',
                },
                hidden: false
            },
            {
                path: '/teacher',
                name: 'teacher',
                component: teacher,
                meta: {
                    title: '教师信息管理',
                },
                hidden: false
            }
        ]
    }
])